<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------

namespace app\yeafy\simpleFactory\demo1;


class Cavalry implements IProduct
{
    public function attack()
    {
        echo '骑兵进攻，攻击力：30~ <br/>';
    }

    public function defense()
    {
        echo '骑兵防守，防御力：5~ <br/>';
    }

}